<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>project_edit</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<div class="container">
		<!--header start-->
		<%@ include file="include/top.jsp" %>
		<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
					<div class="list">
						<span><i class="icon-hand-right"></i>修改个人信息</span>
					</div>
					<div class="newproduct">
						<form class="form-horizontal" action="EditServlet.jspx" method="post"  enctype="multipart/form-data" id="fr">
							<div class="control-group">
								<label class="control-label" >原始密码</label>
								<div class="controls">
									<input type="password" id="inputName"  class="span4" name="p1">
								</div>
								<!-- 密码输入有误，请重新输入 -->
								 <c:if test="${param.state=='1001'}">
				  			          <div style="color:red">密码输入有误，请重新输入</div>
				  		         </c:if>
							</div>
							<div class="control-group">
								<label class="control-label" >新密码</label>
								<div class="controls">
									<input type="password" id="inputName"  class="span4" name="p2">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" >确认密码</label>
								<div class="controls">
									<input type="password" id="inputName"  class="span4" name="p3">
								</div>
							</div>
							<!-- 两次密码输入不一致，请重新输入 -->
							<c:if test="${param.state=='1002'}">
				  			          <div style="color:red">两次密码输入不一致，请重新输入</div>
				  		      </c:if>
							
							<div class="control-group">
								<label class="control-label" for="inputPassword">修改头像</label>
								<div class="controls">
							
									<input type="file" id="inputName"  class="span4" name="myfile">
									
								</div>
							</div>
							<div class="form-actions">
								<button type="submit" class="btn btn-primary" id="btn">保存</button>
								
								<button type="reset" class="btn">取消</button>
							</div>
						</form>
					</div>
				</div>
				<div class="span3"></div>
			</div>
		</div>
		<div class="footer">
			<p>Copyright © 2013 Happy版权所有</p>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
	$("#btn").click(function(){
	$("#fr").submit();
	
	});
	
	 
	
	</script>
</body>
</html>